package entity;

import javax.persistence.Entity;

/**
 * Created by Junchuan.Wu on 2016/1/24 0024.
 */
@Entity
public class Student {
    private int sysid;//system id
    private String id;//Student's id
    private String psw;//Student's password
    private String name;//Student's name

    public Student() {
        super();
    }

    public Student(int sysid, String id, String psw, String name, int classId) {
        this.sysid = sysid;
        this.id = id;
        this.psw = psw;
        this.name = name;
    }

    public int getSysid() {
        return sysid;
    }

    public void setSysid(int sysid) {
        this.sysid = sysid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    @Override
    public String toString() {
        return "Student{" +
                "sysid=" + sysid +
                ", id='" + id + '\'' +
                ", psw='" + psw + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
